#ifndef __PLAYER_EVENT_H__
#define __PLAYER_EVENT_H__

#include "Expand/Events.h"

using namespace PocketSurvival;

namespace ChatLimit
{
    class SubsystemChatLimit;

    class PlayerEvent : public IPlayerEvent, public ICreatureEvent
    {
    private:
        SubsystemChatLimit *m_subsystemChatLimit;

    public:
        PlayerEvent(SubsystemChatLimit * subsystemChatLimit);
        virtual bool message(std::shared_ptr<PlayerData> playerData, std::string &message, std::vector<uint8_t> &toClients) override;
    };

    inline PlayerEvent::PlayerEvent(SubsystemChatLimit * subsystemChatLimit) : m_subsystemChatLimit(subsystemChatLimit) {}

}

#endif
